core: Install unversioned .so, and kill .la file
authorColin Walters <walters@verbum.org>
Sun, 18 Dec 2011 23:37:48 +0000 (18:37 -0500)
committerColin Walters <walters@verbum.org>
Sun, 18 Dec 2011 23:37:48 +0000 (18:37 -0500)
This avoids Yocto barfing on a versioned shared library symbolic link
without a -dev package.

Makefile-libostree.am

index b2b42c669e3c2a522dd226b600dda8efdf652c22..2fc7d931c1201e70f54b395687471d89ebbd0e05 100644 (file)
@@ -38,9 +38,13 @@ libostree_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
 endif
 
 libostree_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_DEP_GIO_UNIX_CFLAGS)
+libostree_la_LDFLAGS = -avoid-version
 libostree_la_LIBADD = libotutil.la $(OT_DEP_GIO_UNIX_LIBS)
 
 if USE_LIBARCHIVE
 libostree_la_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
 libostree_la_LIBADD += $(OT_DEP_LIBARCHIVE_LIBS)
 endif
+
+install-data-hook:
+       rm $(DESTDIR)$(privlibdir)/libostree.la